void main() {
  
  List<String> xxx= ['123', '456', '789'];

  print(xxx.length);

  print(xxx[1]);

  xxx[1] = 'hello dart';
  print(xxx);

// 类似push
  xxx.add('world');
  xxx.addAll(['1', '2', '3']);
  print(xxx);

  print(xxx[xxx.length-1]);
  print(xxx.last);

  xxx.insert(1, '新来的');
  print(xxx);

  xxx.remove('新来的');
  print(xxx);


xxx.removeAt(0);
print(xxx);



xxx.forEach((item) {
  print(item);
});


}
